<!DOCTYPE html>
<body>
<div style="width:100px; overflow:scroll;">
<div style="width:1000px;">
<input autofocus><input value=abc style="width:64px;">
</div>
</div>
<script>
// Focusing on INPUT with SelectionBehaviorOnFOcus::Restore didn't scroll it
// into view if its selection is RangeSelection. crbug.com/443061
if (window.testRunner) {
    testRunner.waitUntilDone();
    document.querySelector('input').addEventListener('focus', function() {
        eventSender.keyDown('\t');
        testRunner.notifyDone();
    }, false);
} else {
    console.log('Require testRunner.');
}
</script>
</body>
